import {Button, Card} from "antd";
import Request from '@/service/request'

const Menu = () => {

    const handleExport = async () => {
        await Request.exportFile({
            method: "post",
            params: {a: 1},
            url: "/exportFile",
            filename: "导出文件.xlsx"
        })
    }
    return (
        <>
            <Card>
                <span className="text">menu</span>
                <Button onClick={handleExport}>导出</Button>
            </Card>
        </>
    );
};

export default Menu;
